package com.zou.dataStruct.Graph.Linked;

public class EdgeNode {
    private int data;//索引
    private int weight;
    private EdgeNode next;

    public EdgeNode(){}

    public EdgeNode(int data, int weight) {
        this.data = data;
        this.weight = weight;
        this.next = null;
    }

    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public EdgeNode getNext() {
        return next;
    }

    public void setNext(EdgeNode next) {
        this.next = next;
    }
}
